import React from 'react';
import LineAreaChart from './LineAreaChart';

export default class RecommendationLineAreaChart extends LineAreaChart {

	constructor(props) {
		super(props);
	}

	/**
	 * @override
	 */
	getSeries(props) {
		let { dataSource } = props;

		return [{
			name: '入口页',
			type: 'area',
			data: dataSource.entrySeries,
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '详情页',
			type: 'area',
			data: dataSource.detailSeries,
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '用题人次',
			type: 'area',
			data: dataSource.questionSeries,
			tooltip: {
				valueSuffix: ''
			}
		}];
	}
}
